package com.itheima.digui;

public class DGDemo {
    public static void main(String[] args) {
      int result = getDJ(5);
        System.out.println(result);
    }

    private static int getDJ(int i) {
        if(i == 0){
            return 1;
        }else{
            return i * getDJ(i - 1);
        }
    }
}
